/* 全局 */
html, body {
	overflow-x: hidden;
}

html body {
	background-color: #f9f9f9;
	margin-top: 61px;
}


i {
	font-style: normal;
}

.layui-card {
	overflow: hidden;
	@media screen and (max-width: $screen-xs-max) {
		&.layui-xs-full {
			margin-left: -15px;
			margin-right: -15px;
			border-radius: 0;
		}
	}
}

// header
.app-header {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 10000;
	width: 100%;
	height: 60px;
	border-radius: 0;
	background-color: white;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);

	.app-logo {
		position: absolute;
		left: 15px;
		top: 11px;
		max-width: 160px;
		max-height: 40px;
		overflow: hidden;

		img {
			width: 100%;
		}

		@media screen and (max-width: 768px) {
			transform: scale(0.5, 0.5) translateX(-50%);
		}
	}

	.layui-nav {
		position: absolute;
		top: 0;
		padding: 0;
		background: none;

		* {
			font-size: $app-nav-font-size;
		}

		.layui-nav-item {
			a {
				color: $app-nav-color;
			}

			a:hover, .layui-this a {
				color: $app-nav-active-color;
			}
		}

		.layui-nav-bar {
			display: none !important;
		}
	}

	.app-nav-main {
		right: 62px;
		top: 10px;
		white-space: nowrap;

		&:after {
			content: '';
			display: block;
			width: 1px;
			height: 50%;
			background: #e9e9e9;
			position: absolute;
			top: 25%;
			right: 0;
		}

		.layui-nav-item {
			line-height: 40px;
			transition: all 0.5s;
			margin-right: 20px;

		}

		.layui-nav-item:hover, .layui-this {
			background: #f5f5f5;
			border-radius: 2px;

			a {
				color: #0099ff;
			}
		}

		.layui-this:after {
			display: none;
		}
	}

	.app-nav-main.layui-nav-tree.layui-nav-side {
		background-color: white;
		box-shadow: 1px 0 2px 0 rgba(0, 0, 0, .05);
		display: block !important;
		border-radius: 0;

		position: fixed;
		top: 60px;
		bottom: 0;
		left: 0;
		overflow-x: hidden;
		z-index: 1001;

		.layui-this a {
			color: white;
		}
	}

	.app-nav-user {
		right: 0;

		.layui-icon {
			font-size: $app-nav-font-size + 4px;
		}

		.layui-this:after {
			display: none;
		}
	}
}

// main
.app-main {
	padding-top: 15px;
	padding-bottom: 15px;
	margin-top: 15px;
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - 60px);
}

// footer
.app-footer {
	margin-top: 30px;
	padding-top: 30px;
	padding-bottom: 30px;

	line-height: 30px;
	text-align: center;
	color: #737573;
	background-color: #f0f0f0 !important;
	border-top: 1px solid #f9f9f9;

	p {
		text-align: center;
	}
}
